package org.crazyrunner.module.sys.service;



import javax.annotation.Resource;

import org.crazyrunner.common.dao.HibernateBaseDao;
import org.crazyrunner.common.page.PagingSupport;
import org.crazyrunner.common.service.BaseService;
import org.crazyrunner.module.sys.entity.Menu;
import org.hibernate.criterion.DetachedCriteria;
import org.springframework.stereotype.Service;

@Service("loginService")
public class LoginService extends BaseService{
	
	@Resource
	private HibernateBaseDao<Menu> hibernateBaseDao;
	
	public void save(){
		
	}
	
	public PagingSupport<Menu> page(PagingSupport<Menu> pagingSupport,Menu menu){
		DetachedCriteria dc = DetachedCriteria.forClass(Menu.class);
		return hibernateBaseDao.findByPaging(pagingSupport, dc);
	}

	public void login(String username, String password, String verifiCode) {
		
		return;
	}
}
